package com.asset.service.impl;
/*
 *@ClassName StockServiceImpl
 *@Author B21015118吴逸鑫
 *@Date 2022/9/27 13:34
 */
import com.asset.bean.PageData;

import com.asset.dao.dao.StockDao;

import com.asset.dao.impl.StockDaoImpl;

import com.asset.service.StockService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class StockServiceImpl implements StockService {
    public static StockDao bookDao =new StockDaoImpl();
    @Override
    public void add(HttpServletRequest request, HttpServletResponse response) {
        bookDao.add(request,response);
    }

    @Override
    public void findOne(HttpServletRequest request, HttpServletResponse response) {
        bookDao.findOne(request, response);
    }

//    @Override
//    public void findAll(HttpServletRequest request, HttpServletResponse response) {
//        bookDao.findAll(request,response);
//    }

    @Override
    public void findAll(HttpServletRequest request, HttpServletResponse response) {
        bookDao.findAll(request,response);
    }

    @Override
    public void del(HttpServletRequest request, HttpServletResponse response) {
        bookDao.del(request,response);
    }

    @Override
    public void update(HttpServletRequest request, HttpServletResponse response) {
        bookDao.update(request,response);
    }
    /**New**/


    @Override
    public PageData findAll(int pageNum, int pageSize) {
        return bookDao.findAll(pageNum,pageSize);
    }


    /**New**/

}
